<%@ include file="/WEB-INF/include/essay/essayCommon.jspf" %>
<%@ include file="/WEB-INF/include/essay/essayHeader.jspf" %>

<h3># <spring:eval expression="essay.no" /></h3>

<form:form modelAttribute="essay" method="post">
	<fieldset>
	 	<ul data-role="listview" data-inset="true">
			<li data-role="fieldcontain">
				<form:label path="dateCreated"><spring:message code="date"/></form:label>
				<form:input type="date" path="dateCreated"/><form:errors path="dateCreated"/>
			</li>			
			<li data-role="fieldcontain">
				<form:label path="type"><spring:message code="type"/></form:label>
				<form:select path="type" data-inline="true">
					<form:option value=""></form:option>
					<form:options items="${typeItems}" />
				</form:select>
				<form:errors path="type"/>
			</li>			
			<li data-role="fieldcontain">
				<form:label path="title"><spring:message code="title"/></form:label>
				<form:input path="title"/><form:errors path="title"/>
			</li>
			<li data-role="fieldcontain">
				<form:label path="content"><spring:message code="content"/></form:label>
				<form:textarea path="content"/><form:errors path="content"/>
			</li>	
		</ul>
	</fieldset>
	<fieldset style="text-align: right;">
			<button type="button" data-theme="b" data-inline="true" data-icon="forward"><spring:message code="save"/></button>
			<button type="button" data-theme="b" data-inline="true" data-icon="back"><spring:message code="cancel"/></button>
	</fieldset>
</form:form>

<%@ include file="/WEB-INF/include/essay/essayFooter.jspf" %>